﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QLNS_Client
{
    public partial class frm_ThemDVHC : Form
    {
        ServiceReference1.Service_QLNSClient sv = new ServiceReference1.Service_QLNSClient();
        public frm_ThemDVHC()
        {
            InitializeComponent();
        }

        private void groupControl1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void frm_ThemDVHC_Load(object sender, EventArgs e)
        {
            drg_DVHC.DataSource = sv.getDVHC();
            
        }

        private void btn_Them_DVHC_Click(object sender, EventArgs e)
        {
           
        }

        private void drg_DVHC_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            txt_MaDVHC.Text = drg_DVHC.CurrentRow.Cells[0].Value.ToString();
            txt_TenDVHC.Text = drg_DVHC.CurrentRow.Cells[1].Value.ToString();
        }
    }
}
